/**
 * 项目名：化工企业安全生产信息化管理平台
 * 日期：    2020-03-01 21:14:36
 * Copyright (c) 2015- -版权所有
 */

package com.joysuch.wwyt.edu.bean;

import lombok.Data;

import java.util.List;

@Data
public class EduDoExamBean implements java.io.Serializable {

    // columns START
    // ID
    private Long id;
    // 编号
    private String code;
    // 名称
    private String name;
    // 类型
    private Long typeId;
    private String typeName;
    private String totalScore;
    private String passScore;
    private Integer questionCount;
    // 时长（分钟）
    private Integer durationMinutes;
    // 简介
    private String introduction;
    private Integer randomizeQuestion;
    // 参与对象
    private List<Question> questions;
    //试卷备注
    private String remark;
    // 考试结束时间戳
    private Integer endExamTimeStamp;

    private Integer showAutograph;
    // columns END

    @Data
    public static class Question {
        // EduTestPaperQuestion.id
        private Long id;
        // EduQuestion.id
        private Long qid;
        private int index;
        private String score;
        private String name;
        private String answer;
        private String typeName;
        private String type;
        private String userAnswer;
        private List<QuestionItem> options;
    }

    @Data
    public static class QuestionItem {
        private Long id;
        private String choiceCode;
        private String content;
    }

}
